<!DOCTYPE html>
<html class="x-admin-sm">
<#include "../layout/meta.ftl">
<body class="layui-layout-body">
<div style="margin: 2vw">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="200">
        </colgroup>
        <thead>
        <tr>
            <th>ID</th>
            <th>节点规范</th>
            <th>节点</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>

        <#list serviceList as service>
            <tr>
                <td>${service.id}</td>
                <td>${service.spec}</td>
                <td>${service.endpoint}</td>
                <td><#if service.updateStatus??>${service.updateStatus.state}<#else>无</#if></td>
                <td>
                    <a href="removeService?service=${service.id}" class="layui-btn layui-btn-normal">删除</a>
                </td>
            </tr>
        </#list>

        </tbody>
    </table>
</div>
</body>
</html>